搜索资源列表
xianchengtongbu
- 多线程协同工作过程中一些线程等待另一线程提供资源所以要线程之间要同步进行-multithreaded process to work together some threads awaiting another thread there to provide resources between the threads simultaneously
循环等待 死锁状态
- 通过各线程的等待模拟死锁,使初学者对死锁有一定的了解-through the threads of waiting Deadlock simulation, so beginners Deadlock have some understanding
pubWaitTest
- COM组件中封装的多线程等待对话框,可用于耗时较长的计算过程等的界面改善
IOCP.rar
- IOCP完成端口与高性能服务器程序开发 主程序: 1.监听一个端口 2.等待连接 3.当有连接来时 4.启一个线程对这个客户端进行处理 5.回到2 服务线程: 1.读客户端请求 2.如果客户端不再有请求,执行6 3.处理请求 4.返回操作结果 5.回到1 6.退出线程 ,IOCP完成端口与高性能服务器程序开发 主程序: 1.监听一个端口 2.等待连接 3.当有连接来时 4.启一个线程对这个客户端进行处理 5.回到2 服务线程: 1.读客户端请求
NWebCrawler
- 一款用 C# 编写的网络爬虫。用户可以通过设置线程数、线程等待时间,连接超时时间,可爬取文件类型和优先级、下载目录等参数,获得网络上URL,下载得到的数据存储在数据库中。-Using a web crawler written in C#. Users can set the number of threads, thread waiting time, connection time, crawling file types can be Type and priority, the do
同一个进程地址空间内执行的七个线程
- 本实验设计在同一个进程地址空间内执行的七个线程。三个生产者线程四个消费者线程。生产者线程生产物品,然后将物品放置在一个空缓冲区中供消费者线程消费。消费者线程从缓冲区中获得物品,然后释放缓冲区。生产者线程生产物品时,若无空缓冲区可用,生产者线程必须等待消费者线程释放出一个空缓冲区;消费者线程消费物品时,若无满的缓冲区,消费者线程将被阻塞,直到新的物品被生产出来。-The experimental design in the same process address space implementa
BufferProgram
- 循环缓冲区好处是:使共享资源的线程的等待时间减到最小,并使他们的平均操作速度相同。 注意:循环缓冲区不适合于生产者和消费者持续以不同的速度进行操作的情况。 缓冲区太小,这样会使线程等待更多的时间。 缓冲区太大,这样会浪费内存。 -Circular buffer benefits are: to make a thread of shared resources to minimize the waiting time, make them the same as the a
linux_socket
- linux下socket编程源码,提供一个类,所有函数全部采用底层函数。类中包含ReadData(),SendData()等函数供网络读写。另外提供一个服务线程等待client的连接。代码有中文注释。-socket programming under linux source to provide a class, all functions all use the underlying function. Category contains ReadData (), SendData () f
QQliaotiangongju
- 本程序采用tcp/ip socket多线程编程,并对一些重要的同步操作做了超时控制,以减少等待的时间,像连接服务器,等待对方接收文件等。基本功能跟QQ类似,能进行多点的聊天和点对点的文件传送。-This procedure using tcp/ip socket multi-threaded programming, a number of important and did a time-out synchronization control, in order to reduce the w
SocketCAsyncSocketCSocket
- Socket,CAsyncSocket,CSocket介绍 Socket有同步阻塞方式和异步非阻塞方式两种使用,事实上同步和异步在我们编程的生涯中可能遇到了很多,而Socket也没什么特别。虽然同步好用,不费劲,但不能满足一些应用场合,其效率也很低。 也许初涉编程的人不能理解"同步(或阻塞)"和"异步(或非阻塞)",其实简单两句话就能讲清楚,同步和异步往往都是针对一个函数来说的,"同步"就是函数直到其要执行的功能全部完成时才返回,而"异步"则是,函数仅仅做一些简单的工作,然后马上返回
Event
- 使用事件对象进行线程同步:先创建线程,然后向内存中复制数据,被创建的线程等待置位事件,在读内存-Use the event object for thread synchronization: first create a thread, and then copy the data to the memory, was created by a thread to wait for the set events, reading the memory
synchronization
- windows线程的创建和用线程等待实现线程的同步-windows thread creation and the use of threads waiting to achieve thread synchronization
linux线程
- linux线程的实验报告,基于linux编写了多线程通信,以及等待延时10秒,若无数据将发送timeout(Linux thread experimental report, based on Linux written multi-threaded communication, and wait for 10 seconds delay, if no data will send timeout)
xiancheng
- 通过代码实现线程间通讯,实现等待、唤醒等机制。(Thread communication is realized through code.)
lock和多线程
- C#,lock和多线程的简单例子,使用线程的好处·使用线程可以把占据长时间的程序中的任务放到后台去处理 ·用户界面可以更加吸引人,这样比如用户点击了一个按钮去触发某些事件的处理,可以弹出一个进度条来显示处理的进度 ·程序的运行速度可能加快 ·在一些等待的任务实现上如用户输入、文件读写和网络收发数据等,线程就比较有用了。在这种情况下可以释放一些珍贵的资源如内存占用等等。(A simple example of C#, lock, and multithreading, the b
实现一个取消操作
- 一个在多线程中实现线程互相通信,取消某些线程的示例,比如等待时间过久就取消操作(A thread to achieve mutual communication in multiple threads, cancel some threads of the sample, such as the waiting time is too long will cancel the operation)
select_client
- Socket多线程通信客户端, 指两个或两个以上的进程在执行过程中,因争夺资源而造成的一种互相等待的现象,若无外力作用,它们都将无法推进下去。(Socket multithreading communication client refers to a phenomenon of waiting for two or more processes in the process of execution, which is caused by competing for resources. If
dlldiao
- 网上有好多使用多线程弹出式等待窗口作为程序中较长时间后台运行提示的,但是做的都不完善,尤其是用 waitThread.Abort() 杀死线程时容易产生异常,进而出错。本程序是比较完善的改进,利用多线程弹出等待窗口,并根据后台程序的运行需要实时发出运行状态信息到等待窗口中,当后台程序运行结束时给弹出窗口线程发出结束信号,让线程自行终止。程序运行环境 vs.net 2010(There are many online multi thread pop-up waiting windows as a
pbthreadpool
- pb线程池,支持线程管理、等待队列、控制并发数(thread pool for pb,management for thread,waiting queue and concurrency)
多线程实现的例程
- PB多线程的源码例子,用于多线程并行,可不用等待timer时间的顺序执行。(A source code example of PB multithreading)